package educar.administrador;

import java.awt.event.ActionListener;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * MenuPrincipal.java
 *
 * Created on 26/04/2012, 08:37:37
 */

/**
 *
 * @author agu
 */
public class AdministradorVentana extends javax.swing.JFrame {

    /** Creates new form MenuPrincipal */
    public AdministradorVentana() {
        initComponents();
                super.setTitle("Menu principal");
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {

        botonAltaAlumno = new javax.swing.JButton();
        botonBajaAlumno = new javax.swing.JButton();
        botonModificarAlumno = new javax.swing.JButton();
        botonAltaDocente = new javax.swing.JButton();
        botonBajaDocente = new javax.swing.JButton();
        botonModificarDocente = new javax.swing.JButton();
        botonAltaMateria = new javax.swing.JButton();
        botonBajaMateria = new javax.swing.JButton();
        botonModificarMateria = new javax.swing.JButton();
        botonCrearUsuario = new javax.swing.JButton();
        botonAltaFacultad = new javax.swing.JButton();
        botonBajaFacultad = new javax.swing.JButton();
        botonModificarFacultad = new javax.swing.JButton();
        botonAltaCargo = new javax.swing.JButton();
        botonBajaCargo = new javax.swing.JButton();
        botonModificarCargo = new javax.swing.JButton();
        botonAltaCarrera = new javax.swing.JButton();
        botonAsignaCargo = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        botonAltaAlumno.setText("Alta alumno");

        botonBajaAlumno.setText("Baja alumno");

        botonModificarAlumno.setText("Modificar alumno");

        botonAltaDocente.setText("Alta docente");

        botonBajaDocente.setText("Baja docente");

        botonModificarDocente.setText("Modificar docente");

        botonAltaMateria.setText("Alta materia");
        botonAltaMateria.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonAltaMateriaActionPerformed(evt);
            }
        });

        botonBajaMateria.setText("Baja materia");
        botonBajaMateria.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonBajaMateriaActionPerformed(evt);
            }
        });

        botonModificarMateria.setText("Modificar materia");
        botonModificarMateria.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonModificarMateriaActionPerformed(evt);
            }
        });

        botonCrearUsuario.setText("Crear usuario");

        botonAltaFacultad.setText("Alta facultad");

        botonBajaFacultad.setText("Baja facultad");

        botonModificarFacultad.setText("Modificar facultad");

        botonAltaCargo.setText("Alta cargo");

        botonBajaCargo.setText("Baja cargo");

        botonModificarCargo.setText("Modificar cargo");

        botonAltaCarrera.setText("Alta carrera");

        botonAsignaCargo.setText("Asignar cargo");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(botonAltaMateria, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 249, Short.MAX_VALUE)
                            .addComponent(botonAltaFacultad, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 249, Short.MAX_VALUE)
                            .addComponent(botonAltaCargo, javax.swing.GroupLayout.DEFAULT_SIZE, 249, Short.MAX_VALUE))
                        .addGap(6, 6, 6))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addComponent(botonAltaDocente, javax.swing.GroupLayout.DEFAULT_SIZE, 249, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addComponent(botonAltaAlumno, javax.swing.GroupLayout.DEFAULT_SIZE, 249, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(botonAltaCarrera, javax.swing.GroupLayout.DEFAULT_SIZE, 249, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(botonBajaFacultad, javax.swing.GroupLayout.DEFAULT_SIZE, 152, Short.MAX_VALUE)
                    .addComponent(botonBajaAlumno, javax.swing.GroupLayout.DEFAULT_SIZE, 152, Short.MAX_VALUE)
                    .addComponent(botonBajaDocente, javax.swing.GroupLayout.DEFAULT_SIZE, 152, Short.MAX_VALUE)
                    .addComponent(botonBajaMateria, javax.swing.GroupLayout.DEFAULT_SIZE, 152, Short.MAX_VALUE)
                    .addComponent(botonBajaCargo, javax.swing.GroupLayout.DEFAULT_SIZE, 152, Short.MAX_VALUE)
                    .addComponent(botonCrearUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 152, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(botonModificarFacultad, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 256, Short.MAX_VALUE)
                    .addComponent(botonModificarMateria, javax.swing.GroupLayout.DEFAULT_SIZE, 256, Short.MAX_VALUE)
                    .addComponent(botonModificarDocente, javax.swing.GroupLayout.DEFAULT_SIZE, 256, Short.MAX_VALUE)
                    .addComponent(botonModificarAlumno, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 256, Short.MAX_VALUE)
                    .addComponent(botonModificarCargo, javax.swing.GroupLayout.DEFAULT_SIZE, 256, Short.MAX_VALUE)
                    .addComponent(botonAsignaCargo, javax.swing.GroupLayout.DEFAULT_SIZE, 256, Short.MAX_VALUE))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(botonCrearUsuario)
                    .addComponent(botonAltaCarrera)
                    .addComponent(botonAsignaCargo))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(botonBajaAlumno)
                    .addComponent(botonModificarAlumno)
                    .addComponent(botonAltaAlumno))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(botonBajaDocente)
                    .addComponent(botonModificarDocente)
                    .addComponent(botonAltaDocente))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(botonAltaMateria)
                    .addComponent(botonBajaMateria)
                    .addComponent(botonModificarMateria))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(botonModificarFacultad)
                    .addComponent(botonBajaFacultad)
                    .addComponent(botonAltaFacultad))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(botonAltaCargo)
                    .addComponent(botonBajaCargo)
                    .addComponent(botonModificarCargo))
                .addContainerGap(26, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>

    private void botonAltaMateriaActionPerformed(java.awt.event.ActionEvent evt) {                                                 
        // TODO add your handling code here:
    }                                                

    private void botonBajaMateriaActionPerformed(java.awt.event.ActionEvent evt) {                                                 
        // TODO add your handling code here:
    }                                                

    private void botonModificarMateriaActionPerformed(java.awt.event.ActionEvent evt) {                                                      
        // TODO add your handling code here:
    }                                                     

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new AdministradorVentana().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify
    private javax.swing.JButton botonAltaAlumno;
    private javax.swing.JButton botonAltaCargo;
    private javax.swing.JButton botonAltaCarrera;
    private javax.swing.JButton botonAltaDocente;
    private javax.swing.JButton botonAltaFacultad;
    private javax.swing.JButton botonAltaMateria;
    private javax.swing.JButton botonAsignaCargo;
    private javax.swing.JButton botonBajaAlumno;
    private javax.swing.JButton botonBajaCargo;
    private javax.swing.JButton botonBajaDocente;
    private javax.swing.JButton botonBajaFacultad;
    private javax.swing.JButton botonBajaMateria;
    private javax.swing.JButton botonCrearUsuario;
    private javax.swing.JButton botonModificarAlumno;
    private javax.swing.JButton botonModificarCargo;
    private javax.swing.JButton botonModificarDocente;
    private javax.swing.JButton botonModificarFacultad;
    private javax.swing.JButton botonModificarMateria;
    // End of variables declaration

    
    public void addActionListener(ActionListener lis){
    	botonAltaAlumno.addActionListener(lis);
        botonAltaCargo.addActionListener(lis);
        botonAltaDocente.addActionListener(lis);
        botonAltaFacultad.addActionListener(lis);
        botonAltaMateria.addActionListener(lis);
        botonBajaAlumno.addActionListener(lis);
        botonBajaCargo.addActionListener(lis);
        botonBajaDocente.addActionListener(lis);
        botonBajaFacultad.addActionListener(lis);
        botonBajaMateria.addActionListener(lis);
        botonCrearUsuario.addActionListener(lis);
        botonModificarAlumno.addActionListener(lis);
        botonModificarCargo.addActionListener(lis);
        botonModificarDocente.addActionListener(lis);
        botonModificarFacultad.addActionListener(lis);
        botonModificarMateria.addActionListener(lis);
        botonAsignaCargo.addActionListener(lis);
        botonAltaCarrera.addActionListener(lis);
	}
}


